package com.huatai.bpmn.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.bpmn.entity.BasicDataEntity;
import com.huatai.bpmn.entity.vo.UserTaskVo;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 审核通过之后存储的正式数据 服务类
 * </p>
 *
 * @author yxy
 * @since 2023-07-27
 */
public interface BasicDataService extends IService<BasicDataEntity> {


    BasicDataEntity findByMykeyAndFlowId(String myKey,String businessKey);

	HashMap<String, Object> getInfo(String myKey, String businessKey);

    List<UserTaskVo> listByUserId(Long userId);

	/**
	 *查询实施人工天的所有未完成审核的项目
	 * @param myKey
	 * @return
	 */
    List<BasicDataEntity> listByMyKey(String myKey);

	/**
	 * 查询flow_id的唯一数据
	 * @param flowId
	 * @return
	 */
    BasicDataEntity getByFlowIdAndStatus(Long flowId);
}
